import request from '@/utils/request'

// 查询班级信息列表
export function listClasss(query) {
  return request({
    // url: '/system/user/list',
    url: '/manage/classs/list',
    method: 'get',
    params: query
  })
}

export function listStudent(query) {
  return request({
    url: '/manage/student/list',
    method: 'get',
    params: query
  })
}

// 查询班级信息详细
export function getClasss(classId) {
  return request({
    url: '/manage/classs/' + classId,
    method: 'get'
  })
}

// 新增班级信息
export function addClasss(data) {
  return request({
    url: '/manage/classs',
    method: 'post',
    data: data
  })
}

// 修改班级信息
export function updateClasss(data) {
  return request({
    url: '/manage/classs',
    method: 'put',
    data: data
  })
}

// 删除班级信息
export function delClasss(classId) {
  return request({
    url: '/manage/classs/' + classId,
    method: 'delete'
  })
}
